import http from './http'

// 退出账户
const userLogout = () => {
    return http.get(
        '/api/UserApi/userLogout',
        { headers: { act: 'setCoursecollect' } }
    )
}

// 上传图片
const changeImage = (file) => {
    return http.post(
        '/api/CommonApi/changeImage',
        {file},
        { headers: { act: 'setCoursecollect' } }
    )
}

// 获取用户信息
const getUserInfos = () => {
    return http.get(
        '/api/UserApi/getUserInfos',
        {headers:{act:'setCoursecollect'}}
    )
}

export {
    userLogout,
    changeImage,
    getUserInfos
}